.kbCallRaw {KbaseKit} | R Documentation |
.kbCallRaw(call, toFile = NULL)
call |
|
toFile |
Daniel Braithwaite
http://api.metagenomics.anl.gov
##---- Should be DIRECTLY executable !! ---- ##-- ==> Define data, use random, ##-- or do help(data=index) for the standard data sets. ## The function is currently defined as function (call, toFile = NULL) { if (0 == length(grep("?", call, fixed = TRUE))) conj = "?" else conj = "&" urlStr <- paste(.kbGetServer(), call, conj, "auth=", .kbGetAuth(), sep = "") message("KbaseKit: .kbCallRaw: ", urlStr) if (is.null(toFile)) readLines(urlStr, warn = FALSE) else download.file(urlStr, toFile, quiet = TRUE) }